import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uniIcons from '@/components/uni-icons/uni-icons.vue'

Vue.config.productionTip = false
App.mpType = 'app'
Vue.component('uni-icons', uniIcons)

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import SearchBox from './components/SearchBox/SearchBox.vue'
import SlideShow from './components/SlideShow/SlideShow.vue'

export function createApp() {
  const app = createSSRApp(App)
  app.component('SearchBox', SearchBox)
  app.component('SlideShow', SlideShow)
  return {
    app
  }
}
// #endif